<template>
    <div class="user-info">
        <a href="/home">
         <slot name="user-icon">
             <div class="iconSty">
             <img src="~assets/images/profile/usericon.png" alt="未登入图标">
             </div>
         </slot>
        </a>
        <div class="Dr">
            <slot><div class="Dr-zc">登入/注册</div></slot>
            <slot><div class="Dr-bangdingSj">没有绑定手机号</div></slot>
        </div>
    </div>
</template>

<script>
export default {
    name: 'UserInfo',

}
</script>

<style scoped>
  .user-info{
    box-sizing: border-box;
    display: flex;
    align-items : center;
    line-height: 35px;
    padding: 8px 13px 25px 13px;
  }
  .iconSty{
    width: 80px;
    height: 80px;
    position: relative;
    float: left;
    border-radius: 50%;
    margin: 0 8px 0 15px;
    background-color: #fff;
    /* overflow: hidden; */
  }
  .iconSty img {
    width: 80%;
    height: 80%;
    position: absolute;
  	top: 50%;
	  left: 50%;
  	margin-top: -40%;  /* 高度的一半 */
  	margin-left: -40%;  /* 宽度的一半 */
    
  }
  .Dr{
    flex: 1;
    color: #666;
    font-size: 12px;
    /* font-weight: 100; */
    text-align: center;
  }
  .Dr-zc{
    margin-bottom: 4px;
  }
  .Dr-zc,
  .Dr-bangdingSj{
    width: 60%;
    padding: 0  5px;
    background-color: #fff;
    border-radius: 15px;
  }
</style>